package com.xueyi.system.codeTemplate.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xueyi.common.core.web.tenant.base.TBaseEntity;
import com.xueyi.system.codeTemplate.domain.dto.CodeTemplateDto;
import com.baomidou.mybatisplus.annotation.TableField;
import com.xueyi.common.core.annotation.Excel;

import java.time.LocalDateTime;

/**
 * 溯源码模板 持久化对象
 *
 * @author zlf
 */
@TableName(value = "base_code_template", excludeProperty = {"sort"})
public class CodeTemplatePo extends TBaseEntity {

    private static final long serialVersionUID = 1L;

    /** 宣传语 */
@Excel(name = "宣传语")
@TableField("publicity")
private String publicity;

    /** 模板图片 */
@Excel(name = "模板图片")
@TableField("img")
private String img;

    /** 预览图片 */
@Excel(name = "预览图片")
@TableField("preview_img")
private String previewImg;

    /** 产品名称 */
@Excel(name = "产品名称")
@TableField("product_name")
private String productName;

    /** 保质期 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Excel(name = "保质期", width = 30, dateFormat = "yyyy-MM-dd")
@TableField("expiration")
private LocalDateTime expiration;

    /** 联系电话 */
@Excel(name = "联系电话")
@TableField("phone")
private String phone;

    /** 采收时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Excel(name = "采收时间", width = 30, dateFormat = "yyyy-MM-dd")
@TableField("recovery")
private LocalDateTime recovery;

    /** 规格 （下拉：5cm*3cm 等） */
@Excel(name = "规格 ", readConverterExp = "下=拉：5cm*3cm,等=")
@TableField("format")
private String format;

    /** 状态 */
@Excel(name = "状态")
@TableField("status")
private String status;

public void setPublicity(String publicity) {
    this.publicity = publicity;
}

public String getPublicity() {
    return publicity;
}

public void setImg(String img) {
    this.img = img;
}

public String getImg() {
    return img;
}

public void setPreviewImg(String previewImg) {
    this.previewImg = previewImg;
}

public String getPreviewImg() {
    return previewImg;
}

public void setProductName(String productName) {
    this.productName = productName;
}

public String getProductName() {
    return productName;
}

public void setExpiration(LocalDateTime expiration) {
    this.expiration = expiration;
}

public LocalDateTime getExpiration() {
    return expiration;
}

public void setPhone(String phone) {
    this.phone = phone;
}

public String getPhone() {
    return phone;
}

public void setRecovery(LocalDateTime recovery) {
    this.recovery = recovery;
}

public LocalDateTime getRecovery() {
    return recovery;
}

public void setFormat(String format) {
    this.format = format;
}

public String getFormat() {
    return format;
}

@Override
public void setStatus(String status) {
    this.status = status;
}

@Override
public String getStatus() {
    return status;
}

}
